/*
package com.luoc.base;

import com.alibaba.fastjson.JSON;
import com.tqds.idol.websocket.entity.ChatMsg;
import com.tqds.idol.websocket.entity.DataContent;
import com.tqds.idol.websocket.utils.JsonUtils;

*/
/**
 * @Author: luoc
 * @Date: 2019/7/16 9:48
 *//*

public class test {
    public static void main(String[] args) {
        DataContent dataContent = new DataContent();
        ChatMsg chatMsg = new ChatMsg();
        chatMsg.setMid("0");
        chatMsg.setMsg("Hello World");
        chatMsg.setReceiverId("1");
        chatMsg.setSenderId("2");
        dataContent.setChatMsg(chatMsg);
        dataContent.setAction(1);
        dataContent.setExtand("扩展");
        System.out.println(JSON.toJSON(dataContent));

        DataContent dataContent1 = JsonUtils.jsonToPojo(JSON.toJSON(dataContent).toString(), DataContent.class);
        System.out.println(JSON.toJSON(dataContent1));
    }
}
*/
